package com.buba.springcloud.service.impl;

import com.buba.springcloud.dao.DeptMapper;
import com.buba.springcloud.pojo.Dept;
import com.buba.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张宇飞
 * @Description:
 * @date 2021/8/911:58
 */

@Service
public class DeptServiceImpl implements DeptService {
    private DeptMapper deptMapper;

    @Override
    public boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    @Override
    public Dept selDeptById(Long deptId) {
        return deptMapper.selDeptById(deptId);
    }

    @Override
    public List<Dept> selDept() {
        return deptMapper.selDept();
    }

    @Autowired
    public void setDeptMapper(DeptMapper deptMapper) {
        this.deptMapper = deptMapper;
    }


}
